//
//  APMhubLogManager.h
//  DataTransHubSample
//
//  Created by ljwcode on 2022/8/19.
//  Copyright © 2022 北. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <DataTransHub/LogHub.h>
#import <DataTransHub/LogHubLever.h>
@class APMConfigModel;

typedef NS_ENUM(NSUInteger, APMLogLevel) {
    APMLogLevelVerbose = 1,
    APMLogLevelDebug   = 2,
    APMLogLevelInfo    = 3,
    APMLogLevelWarning = 4,
    APMLogLevelError   = 5
};

NS_ASSUME_NONNULL_BEGIN

@interface APMhubLogManager : NSObject

@property(nonatomic,copy)NSString *logPath;

@property (nonatomic, assign, getter=isEnable) BOOL enable;
@property (nonatomic, strong) APMConfigModel *config;



+(instancetype)shareInstance;

//+ (void)dd_logLever:(LogHubLever) lever actionLine:(int) line actionFile:(const char *) file
//           function:(const char *) function tag:(NSString *)tag stringWithFormat:(NSString *)format;

// 日志系统方法;
+ (void)q1_logLever:(APMLogLevel)level actionLine:(int)line function:(const char *)function stringWithFormat:(NSString *)format;

// 日志写入文件
- (void)q1_writeLogDataInfo:(LogInfo *)info msg:(NSString *)msg;

-(void)dd_releaseLog;

@end

NS_ASSUME_NONNULL_END
